import { useSearchParams } from "react-router";

export default function SuccessPage() {
    const [searchParams] = useSearchParams();
    const checkout_id = searchParams.get("checkout_id");

    return (
        <div className="container mx-auto px-4 py-8">
            <h1>Payment Successful!</h1>
            {checkout_id && <p>Checkout ID: {checkout_id}</p>}
        </div>
    );
}
